package com.feige.utils.mybatis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author feige<br />
 * @ClassName: WrapperObj <br/>
 * @Description: <br/>
 * @date: 2021/8/23 10:18<br/>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WrapperObj {

    private String name;
    private Object value;
    private Symbol type;


    public static WrapperObj getInstance(String name,Object value,Symbol type){
        return new WrapperObj(name,value,type);
    }

    public static WrapperObj getEqInstance(String name,Object value){
        return new WrapperObj(name,value,Symbol.EQ);
    }
}
